// 使用 fp.flowRight()、fp.prop()和fp.first()获取第一个car的name

const { first, prop, flowRight } = require('lodash/fp')
const { cars } = require('./data')

let getFirstName = flowRight(prop('name'), first)
console.log(getFirstName(cars))
